package com.easyj.admin.sys.service;

import java.util.List;
import com.easyj.admin.db.model.Permission;
import com.easyj.admin.db.model.RouteVo;

public interface PermissionService {
   /**
    * 取得权限树
    * @return
    */
	public List<Permission> getTree();
   	public List<Permission> findList(Permission filter);

	public Permission findById(Long id);

	public int  insertEntity(Permission entity);
	public int  updateEntity(Permission entity);

    public int  disableById(Long id);
	public int  enableById(Long id);
	/**
	    * 取得当前用户路由  
	 * @return
	 */
	public  List<RouteVo>  getUserRouteTree();

}
